Hi Tom,
I am collecting some data in a buffer on the DSP which consists of X,Y,Z points combined with an analog measurement, and then transmitting the data points to the PC using printf statements. The printf statement looks something like:
printf(“MyData %3.3f %3.3f %3.3f %3.3f\n”,data1, data2, data3, data4);
Then on the PC I watch the console output for the MyData tag and parse the output lines.
However, it seems like these MyData lines are getting mangled under certain conditions. The characters are not coming through in the correct order, or else some other console data is being intermingled with these lines.
Does the printf statement get split across time-slices, so that the data gets loaded into the console buffer in different slices? Do I need to do a WaitNextTimeSlice() before printf, or use shorter strings If I want them to get transmitted
in one piece?
Thanks,
Toby
The information contained in this transmission is intended only for the person or entity
to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive
material. If you are not the intended recipient, please contact the sender immediately
and destroy the material in its entirety, whether electronic or hard copy. You are
notified that any review, retransmission, copying, disclosure, dissemination or other
use of, or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited.